﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="register.aspx.cs" Inherits="WebRole1.register" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>RegisteR</h1>
    <p></p>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    <table>
    <tr>
    <td style="text-align: right">Email:</td>
    <td>
        <asp:TextBox ID="TextBox1" runat="server" Width="202px"></asp:TextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="* Required Field" ForeColor="Red" 
                ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
    <td style="text-align: right">Name:</td>
    <td>
        <asp:TextBox ID="TextBox2" runat="server" Width="201px"></asp:TextBox>
        </td><td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ErrorMessage="* Required Field" ForeColor="Red" 
                ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
    <td style="text-align: right">Password:</td>
    <td>
        <asp:TextBox ID="TextBox3" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
        </td><td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ErrorMessage="* Required Field" ForeColor="Red" 
                ControlToValidate="TextBox4"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
    <td style="text-align: right">Confirm Password:<br />
        </td>
    <td>
        <asp:TextBox ID="TextBox4" runat="server" TextMode="Password" Width="202px"></asp:TextBox>
        <br />
        </td><td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ErrorMessage="* Required Field" ForeColor="Red" 
                ControlToValidate="TextBox4"></asp:RequiredFieldValidator>
            <br />
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="TextBox3" ControlToValidate="TextBox4" 
                ErrorMessage="Both password does not match" ForeColor="Red"></asp:CompareValidator>
        </td>
    </tr>
    <tr>
    <td colspan="2" style="text-align: right">
                                    <asp:Button ID="btn_submit" runat="server" Text="Submit" Width="118px" 
                                    onclick="btn_submit_Click" TabIndex="9" />
                            </td>
    </tr>
    </table>
<br />
<asp:Label ID="Label1" runat="server" Font-Size="Large"></asp:Label>
</asp:Content>
